package com.wzq.animal.back.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wzq.animal.back.mapper.FilesMapper;
import com.wzq.animal.back.pojo.Files;
import com.wzq.animal.back.service.FilesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FilesServiceImpl extends ServiceImpl<FilesMapper, Files> implements FilesService {
    @Autowired
    private FilesMapper filesMapper;

    @Override
    public boolean updateOriginalMainName(int id, String originalName) {
        int i = filesMapper.updateOriginalNameById(id, originalName);
        return i > 0;
    }
}
